import Vue from 'vue'
import { URL_PREFIX } from '@/api/index'

/* /system/organ/page
供稿单位分页查询 */
export const getSystemOrganList = (params) => Vue.http.get(URL_PREFIX + '/system/organ/page', { params })

/* /system/organ/add
添加机构 */
export const systemOrganAdd = (data) => Vue.http.post(URL_PREFIX + '/system/organ/add', data)

/* /system/organ/update/{id}
更新结构信息 */
export const systemOrganUpdate = (id, params) =>
  Vue.http.post(URL_PREFIX + '/system/organ/update/' + id, null, { params })

/* /system/organ/remove/{id}
删除机构 */
export const systemOrganRemove = (id) =>
  Vue.http.post(URL_PREFIX + '/system/organ/remove/' + id)